<?php
/* @var $this yii\web\View */
/* @var $dataProvider yii\data\ActiveDataProvider */
/* @var $searchModel mdm\admin\models\searchs\Menu */

use metronic\TreeAsset;
use metronic\MetronicModalsExtendedAsset;

$this->params['consoleactions'] = [
    [
        'label' => '<i class="ionicons ion-albums-outline"></i> 更新层级关系',
        'url' => ['refresh'],
        'options' => ['data-pjax' => 0, 'class' => 'btn-light-primary'],
    ],
    [
        'label' => '<i class="ionicons ion-add-circle-outline"></i> ' . Yii::t('rbac-admin', 'Create Menu'),
        'url' => ['create'],
        'options' => ['class' => 'btn-success']
    ],
];
TreeAsset::register($this);
MetronicModalsExtendedAsset::register($this);

$this->registerJs($this->render('ui-tree.js'));
?>
<div class="portlet light bordered">
    <div class="portlet-title">
        <div class="caption">
            <i class="icon-bubble font-green-sharp"></i>
            <span class="caption-subject font-green-sharp bold uppercase">Checkable Tree</span>
        </div>
    </div>
    <div class="portlet-body">
        <div id="tree_4" class="tree"> </div>
    </div>
</div>
